﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Model;
using BLL;
using System.Data;
namespace Financial.Controllers
{
    public class IndexController : Controller
    {
        //
        // GET: /Index/
        //
        // GET: /Index/
        
        /// <summary>
        /// 显示信息方法
        /// </summary>
        /// <returns></returns>
      
        public ActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// 大导航的显示
        /// </summary>
        /// <returns></returns>
        public ActionResult ShowNav()
        {
            NavBLL bll = new NavBLL();
            return Json(bll.ShowNav().ToList(), JsonRequestBehavior.AllowGet);
            
        }
        /// <summary>
        /// 显示发布预告
        /// </summary>
        /// <returns></returns>
        public ActionResult ShowSigns()
        {
            PreBLL bll = new PreBLL();
            return Json(bll.ShowSigns().ToList(), JsonRequestBehavior.AllowGet);
        }
        /// <summary>
        /// 显示行业动态
        /// </summary>
        /// <returns></returns>
        public ActionResult Bound_Show()
        {
            BoundBLL bll = new BoundBLL();
            return Json(bll.ShowBound().ToList(), JsonRequestBehavior.AllowGet);
        }
        ///
        public ActionResult ShowADD()
        { 
            ADDBLL bll=new ADDBLL();
            List<Project> i = bll.ShowADD().ToList();
            return Json(i, JsonRequestBehavior.AllowGet);
        }
        /// <summary>
        /// 大导航的显示
        /// </summary>
        /// <returns></returns>
        public ActionResult Navtion_Show ()
        {
            NavtionBLL bll = new NavtionBLL();
            return Json(bll.Navigation_Show(), JsonRequestBehavior.AllowGet);
        }
        /// <summary>
        /// 发表预告的显示
        /// </summary>
        /// <returns></returns>
        public ActionResult Mark_Show ()
        {
            MarkBLL bll = new MarkBLL();
            return Json(bll.Mark_Show().ToList(), JsonRequestBehavior.AllowGet);
        }
        public ActionResult Web_Show ()
        {
            NoticeBLL bll = new NoticeBLL();

            return Json( bll.ShowNotice(), JsonRequestBehavior.AllowGet);
        }
       

    }
}
